import { defineStore } from 'pinia'
import { ref } from 'vue'
import { AnalysisResult } from '@/types'

export const useAnalysisStore = defineStore('analysis', () => {
  const currentAnalysis = ref<AnalysisResult | null>(null)
  
  const updateAnalysisResult = (result: AnalysisResult) => {
    currentAnalysis.value = result
  }
  
  return {
    currentAnalysis,
    updateAnalysisResult
  }
})